cmake_minimum_required(VERSION 3.7)
project(opensslTest)

set(CMAKE_CXX_STANDARD 11)

set(SOURCE_FILES main.cpp)
add_executable(opensslTest ${SOURCE_FILES})

include_directories(${CMAKE_SOURCE_DIR}/include)

add_library(openssl SHARED IMPORTED )
add_library(ssl SHARED IMPORTED )

set_target_properties(openssl PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/link/libcrypto.so.1.1)
set_target_properties(ssl PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/link/libssl.so.1.1)

target_link_libraries(opensslTest openssl ssl)